package com.vhall.component.framework.common.support;

/**
 * @author yuanzh
 * @date 2021/12/8
 */
public class SecretKeyThreadLocal {

    private static ThreadLocal<UserTicketVO> thLocal = new ThreadLocal<>();

    public static void setTicket(UserTicketVO ticket) {
        thLocal.set(ticket);
    }

    public static UserTicketVO getTicket() {
        return thLocal.get();
    }

    public static void remove() {
        thLocal.remove();
    }

}
